package com.aia.ilp.web.gift;

import org.apache.log4j.Logger;

import com.aia.ilp.service.MainService;
import com.opensymphony.xwork2.ActionSupport;

public class UpdateAction extends ActionSupport {
	private static final long serialVersionUID = 1L;
	private static final Logger logger = Logger.getLogger(UpdateAction.class);
	private String xml;
	private String auth;
	private String guid;
	private MainService mainService;

	public String execute() {
		try {
			mainService.updateGiftStatus(this);
		} catch (Exception e) {
			logger.error("error in action", e);
			throw new RuntimeException(e);
		}
		return SUCCESS;
	}

	public void setXml(String xml) {
		this.xml = xml;
	}

	public String getXml() {
		return xml;
	}

	public void setAuth(String auth) {
		this.auth = auth;
	}

	public String getAuth() {
		return auth;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public String getGuid() {
		return guid;
	}

	public void setMainService(MainService mainService) {
		this.mainService = mainService;
	}

	public MainService getMainService() {
		return mainService;
	}


}
